<?php
error_reporting(0);
set_time_limit(9999999);
extract($_REQUEST);
if(getenv('HTTP_CLIENT_IP')) {
  $onlineip = getenv('HTTP_CLIENT_IP');
} elseif(getenv('HTTP_X_FORWARDED_FOR')) {
  $onlineip = getenv('HTTP_X_FORWARDED_FOR');
} elseif(getenv('REMOTE_ADDR')) {
  $onlineip = getenv('REMOTE_ADDR');
} else {
  $onlineip = $HTTP_SERVER_VARS['REMOTE_ADDR'];
}

$tmp = file_get_contents('php://input');
file_put_contents($onlineip.'.xml','<?xml version="1.0" ?><aaa>'.$tmp.'</aaa>');
 
